<%@ Page Language="C#" MasterPageFile="~/admin/admin1.master" AutoEventWireup="true" CodeFile="PingServices.aspx.cs" Inherits="admin_Pages_PingServices" Title="Ping services" %>
<%@ Register Namespace="Controls" TagPrefix="Blog" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphAdmin" Runat="Server">
  <Blog:LanguageSelector ID="listLanguages" runat="server" CssClass="listLanguages" DisplayMode="LinkButton" OnClick="OnSelectedLanguage" UseViewState="True" />
  <%=Resources.labels.selectedLanguage + ": " + listLanguages.SelectedLanguageText %><br /><br />
  
  <asp:TextBox runat="Server" ID="txtNewCategory" Width="300" MaxLength="255" />  
  <asp:Button runat="server" ID="btnAdd" ValidationGroup="new" />
  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="Server" ValidationGroup="new" ControlToValidate="txtNewCategory" ErrorMessage="Please specify a ping service" /><br /><hr />


  <asp:GridView runat="server" ID="grid" CssClass="category"  
    UseAccessibleHeader="true" 
    GridLines="None"
    AutoGenerateColumns="false" 
    AlternatingRowStyle-CssClass="alt" 
    AutoGenerateDeleteButton="true" 
    AutoGenerateEditButton="true">
    <Columns>      
      <asp:TemplateField HeaderText="<%$ Resources:labels, name %>">
        <ItemTemplate>
          <%# Eval("value") %>
        </ItemTemplate>
        <EditItemTemplate>
          <asp:TextBox runat="server" ID="txtName" Width="100%" MaxLength="255" Text='<%# Eval("value") %>' />
        </EditItemTemplate>
      </asp:TemplateField>
    </Columns>
  </asp:GridView>
</asp:Content>

